public class i {
    public static void main(String[] args) {
        String[] clubNames = {"编程", "动漫", "志愿者", "音乐", "篮球"};
        int[] totalCounts = {25, 32, 18, 28, 35};
        int[] newStudentCounts = {18, 25, 15, 20, 28};

        String maxCountClub = "";
        int maxCount = 0;

        System.out.println("社团纳新结果：");
        System.out.println("-------------------------");
        for (int i = 0; i < clubNames.length; i++) {
            double newRatio = (double) newStudentCounts[i] / totalCounts[i] * 100;
            newRatio = Math.round(newRatio * 10) / 10.0;
            System.out.println("名称：" + clubNames[i]);
            System.out.println("总人数：" + totalCounts[i] + "人");
            System.out.println("人数：" + newStudentCounts[i] + "人");
            System.out.println("占比：" + newRatio + "%");
            System.out.println("-------------------------");

            if (totalCounts[i] > maxCount) {
                maxCount = totalCounts[i];
                maxCountClub = clubNames[i];
            }
        }

        System.out.println("报名最多的社团：" + maxCountClub + "（" + maxCount + "人）");
    }
}